<h2>piechart.js</h2>
<p>Library for drawing Pie charts, using SVG.</p>
<hr/>

<h3>Objects</h3>
<ul>
	<li><a href="#piechart">OAT.PieChart(div, optObj)</a></li>
</ul>

<h3>Methods</h3>
<ul>
	<li><a href="#attachdata">OAT.PieChart::attachData(dataArray)</a></li>
	<li><a href="#attachtext">OAT.PieChart::attachText(textArray)</a></li>
	<li><a href="#attachcolors">OAT.PieChart::attachColors(colorArray)</a></li>
	<li><a href="#draw">OAT.PieChart::draw()</a></li>
</ul>

<hr/>

<h3><a name="piechart">OAT.PieChart(div, optObj)</a></h3>
<p>Creates a Pie Chart inside <em>div</em>, <em>optObj</em> describes its properties. Its values:</p>
<ul>
	<li>radius - int; if 0, then radius is computed automatically</li>
	<li>depth - int; height of pie</li>
	<li>width - int; if 0, then width is computed automatically</li>
	<li>height - int; if 0, then height is computed automatically</li>
	<li>legend - bool; should we draw the legend?</li>
	<li>ycoef - float; how much skewing should be applied?</li>
</ul>

<h3><a name="attachdata">OAT.PieChart::attachData(dataArray)</a></h3>
<p>Adds data to chart.</p>

<h3><a name="attachtext">OAT.PieChart::attachText(textArray)</a></h3>
<p>Adds legend labels.</p>

<h3><a name="attachcolors">OAT.PieChart::attachColors(colorArray)</a></h3>
<p>Adds colors.</p>

<h3><a name="draw">OAT.PieChart::draw()</a></h3>
<p>Draws the chart.</p>
<p class="code">
var chart = new OAT.PieChart("myDiv",{});<br/>
chart.attachData([1,3,2]);<br/>
chart.attachText(["a","b","c"]);<br/>
chart.attachColors(["#f00","#0f0","#00f"]);<br/>
chart.draw();
</p>
